home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / program / lgavb25.zip / VB.ZIP / LGBANDS.FRM < prev    next >
Text File  |  1996-01-10  |  18KB  |  588 lines

  1. VERSION 2.00
  2. Begin Form BandDemo 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Operating Bands"
  6.    ClientHeight    =   5925
  7.    ClientLeft      =   3135
  8.    ClientTop       =   2580
  9.    ClientWidth     =   7575
  10.    Height          =   6285
  11.    Left            =   3075
  12.    LinkTopic       =   "Form2"
  13.    MaxButton       =   0   'False
  14.    MDIChild        =   -1  'True
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   395
  17.    ScaleMode       =   3  'Pixel
  18.    ScaleWidth      =   505
  19.    Top             =   2280
  20.    Width           =   7695
  21.    Begin TextBox Text1 
  22.       Height          =   825
  23.       Left            =   3300
  24.       MultiLine       =   -1  'True
  25.       TabIndex        =   39
  26.       Top             =   4920
  27.       Width           =   4035
  28.    End
  29.    Begin Frame Frame6 
  30.       BackColor       =   &H00C0C0C0&
  31.       Caption         =   "Band Style"
  32.       Height          =   1605
  33.       Left            =   3330
  34.       TabIndex        =   33
  35.       Top             =   1020
  36.       Width           =   2070
  37.       Begin OptionButton Option2 
  38.          BackColor       =   &H00C0C0C0&
  39.          Caption         =   "User Defined"
  40.          Height          =   225
  41.          Index           =   4
  42.          Left            =   240
  43.          TabIndex        =   38
  44.          Top             =   1260
  45.          Width           =   1600
  46.       End
  47.       Begin OptionButton Option2 
  48.          BackColor       =   &H00C0C0C0&
  49.          Caption         =   "Tank"
  50.          Height          =   225
  51.          Index           =   3
  52.          Left            =   240
  53.          TabIndex        =   37
  54.          Top             =   1020
  55.          Width           =   1600
  56.       End
  57.       Begin OptionButton Option2 
  58.          BackColor       =   &H00C0C0C0&
  59.          Caption         =   "Thermometer"
  60.          Height          =   225
  61.          Index           =   2
  62.          Left            =   240
  63.          TabIndex        =   36
  64.          Top             =   780
  65.          Width           =   1600
  66.       End
  67.       Begin OptionButton Option2 
  68.          BackColor       =   &H00C0C0C0&
  69.          Caption         =   "Ellipse"
  70.          Height          =   225
  71.          Index           =   1
  72.          Left            =   240
  73.          TabIndex        =   35
  74.          Top             =   540
  75.          Width           =   1600
  76.       End
  77.       Begin OptionButton Option2 
  78.          BackColor       =   &H00C0C0C0&
  79.          Caption         =   "Rectangle"
  80.          Height          =   225
  81.          Index           =   0
  82.          Left            =   240
  83.          TabIndex        =   34
  84.          Top             =   300
  85.          Value           =   -1  'True
  86.          Width           =   1600
  87.       End
  88.    End
  89.    Begin Frame Frame5 
  90.       BackColor       =   &H00C0C0C0&
  91.       Caption         =   "Band Picture"
  92.       Height          =   855
  93.       Left            =   5430
  94.       TabIndex        =   30
  95.       Top             =   120
  96.       Width           =   1935
  97.       Begin PictureBox Image1 
  98.          Height          =   500
  99.          Index           =   0
  100.          Left            =   1080
  101.          Picture         =   LGBANDS.FRX:0000
  102.          ScaleHeight     =   31
  103.          ScaleMode       =   3  'Pixel
  104.          ScaleWidth      =   31
  105.          TabIndex        =   31
  106.          Top             =   240
  107.          Width           =   500
  108.       End
  109.       Begin PictureBox Image1 
  110.          Height          =   500
  111.          Index           =   1
  112.          Left            =   390
  113.          Picture         =   LGBANDS.FRX:127A
  114.          ScaleHeight     =   465
  115.          ScaleWidth      =   465
  116.          TabIndex        =   32
  117.          Top             =   240
  118.          Width           =   500
  119.       End
  120.    End
  121.    Begin LGAUGE LGauge1 
  122.       AutoRedraw      =   -1  'True
  123.       AVersion        =   2.501
  124.       BackColor       =   &H00E0E0E0&
  125.       BandID          =   1
  126.       Bands           =   3
  127.       BevelInner      =   0  ' 0 - None
  128.       BevelOuter      =   2  ' 2 - Inset
  129.       BevelWidth      =   2
  130.       BorderWidth     =   0
  131.       CaptionID       =   0
  132.       Captions        =   0
  133.       FontID          =   0
  134.       Height          =   5565
  135.       Left            =   90
  136.       Orientation     =   1  ' 1 - Vertical
  137.       PointerID       =   2
  138.       Pointers        =   3
  139.       ScaleID         =   0
  140.       Scales          =   1
  141.       TabIndex        =   29
  142.       TicID           =   0
  143.       Tics            =   2
  144.       Top             =   180
  145.       Width           =   3015
  146.       ZLoad           =   LGBANDS.FRX:31E4
  147.    End
  148.    Begin Frame Frame4 
  149.       BackColor       =   &H00C0C0C0&
  150.       Caption         =   "Band Size Properties"
  151.       Height          =   975
  152.       Left            =   3330
  153.       TabIndex        =   5
  154.       Top             =   3630
  155.       Width           =   4035
  156.       Begin HScrollBar HScroll1 
  157.          Height          =   240
  158.          Index           =   2
  159.          Left            =   1185
  160.          Max             =   100
  161.          TabIndex        =   8
  162.          Top             =   315
  163.          Width           =   2400
  164.       End
  165.       Begin HScrollBar HScroll1 
  166.          Height          =   240
  167.          Index           =   3
  168.          Left            =   1185
  169.          Max             =   100
  170.          TabIndex        =   9
  171.          Top             =   540
  172.          Width           =   2400
  173.       End
  174.       Begin Label Label1 
  175.          Alignment       =   1  'Right Justify
  176.          AutoSize        =   -1  'True
  177.          BackStyle       =   0  'Transparent
  178.          Caption         =   "Band Inner:"
  179.          FontBold        =   0   'False
  180.          FontItalic      =   0   'False
  181.          FontName        =   "Arial"
  182.          FontSize        =   8.25
  183.          FontStrikethru  =   0   'False
  184.          FontUnderline   =   0   'False
  185.          Height          =   210
  186.          Index           =   2
  187.          Left            =   330
  188.          TabIndex        =   10
  189.          Top             =   330
  190.          Width           =   825
  191.       End
  192.       Begin Label Label2 
  193.          Alignment       =   2  'Center
  194.          AutoSize        =   -1  'True
  195.          BackStyle       =   0  'Transparent
  196.          Caption         =   "0"
  197.          Height          =   195
  198.          Index           =   2
  199.          Left            =   3690
  200.          TabIndex        =   11
  201.          Top             =   330
  202.          Width           =   120
  203.       End
  204.       Begin Label Label1 
  205.          Alignment       =   1  'Right Justify
  206.          AutoSize        =   -1  'True
  207.          BackStyle       =   0  'Transparent
  208.          Caption         =   "Band Outer:"
  209.          FontBold        =   0   'False
  210.          FontItalic      =   0   'False
  211.          FontName        =   "Arial"
  212.          FontSize        =   8.25
  213.          FontStrikethru  =   0   'False
  214.          FontUnderline   =   0   'False
  215.          Height          =   210
  216.          Index           =   3
  217.          Left            =   285
  218.          TabIndex        =   12
  219.          Top             =   540
  220.          Width           =   870
  221.       End
  222.       Begin Label Label2 
  223.          Alignment       =   2  'Center
  224.          AutoSize        =   -1  'True
  225.          BackStyle       =   0  'Transparent
  226.          Caption         =   "0"
  227.          Height          =   195
  228.          Index           =   3
  229.          Left            =   3690
  230.          TabIndex        =   13
  231.          Top             =   555
  232.          Width           =   120
  233.       End
  234.    End
  235.    Begin Frame Frame3 
  236.       BackColor       =   &H00C0C0C0&
  237.       Caption         =   "Band Range Properties"
  238.       Height          =   960
  239.       Left            =   3330
  240.       TabIndex        =   23
  241.       Top             =   2670
  242.       Width           =   4035
  243.       Begin HScrollBar HScroll1 
  244.          Height          =   240
  245.          Index           =   0
  246.          Left            =   1170
  247.          Max             =   100
  248.          TabIndex        =   25
  249.          Top             =   330
  250.          Width           =   2400
  251.       End
  252.       Begin HScrollBar HScroll1 
  253.          Height          =   240
  254.          Index           =   1
  255.          Left            =   1170
  256.          Max             =   100
  257.          TabIndex        =   24
  258.          Top             =   555
  259.          Width           =   2400
  260.       End
  261.       Begin Label Label2 
  262.          Alignment       =   2  'Center
  263.          AutoSize        =   -1  'True
  264.          BackStyle       =   0  'Transparent
  265.          Caption         =   " 0"
  266.          Height          =   195
  267.          Index           =   0
  268.          Left            =   3645
  269.          TabIndex        =   15
  270.          Top             =   375
  271.          Width           =   180
  272.       End
  273.       Begin Label Label1 
  274.          AutoSize        =   -1  'True
  275.          BackStyle       =   0  'Transparent
  276.          Caption         =   "Band Start:"
  277.          FontBold        =   0   'False
  278.          FontItalic      =   0   'False
  279.          FontName        =   "Arial"
  280.          FontSize        =   8.25
  281.          FontStrikethru  =   0   'False
  282.          FontUnderline   =   0   'False
  283.          Height          =   210
  284.          Index           =   0
  285.          Left            =   300
  286.          TabIndex        =   28
  287.          Top             =   330
  288.          Width           =   810
  289.       End
  290.       Begin Label Label1 
  291.          Alignment       =   1  'Right Justify
  292.          AutoSize        =   -1  'True
  293.          BackStyle       =   0  'Transparent
  294.          Caption         =   "Band Stop:"
  295.          FontBold        =   0   'False
  296.          FontItalic      =   0   'False
  297.          FontName        =   "Arial"
  298.          FontSize        =   8.25
  299.          FontStrikethru  =   0   'False
  300.          FontUnderline   =   0   'False
  301.          Height          =   210
  302.          Index           =   1
  303.          Left            =   300
  304.          TabIndex        =   27
  305.          Top             =   585
  306.          Width           =   795
  307.       End
  308.       Begin Label Label2 
  309.          Alignment       =   2  'Center
  310.          AutoSize        =   -1  'True
  311.          BackStyle       =   0  'Transparent
  312.          Caption         =   " 0"
  313.          Height          =   195
  314.          Index           =   1
  315.          Left            =   3645
  316.          TabIndex        =   26
  317.          Top             =   615
  318.          Width           =   180
  319.       End
  320.    End
  321.    Begin Frame Frame2 
  322.       BackColor       =   &H00C0C0C0&
  323.       Caption         =   "Band Color"
  324.       Height          =   1605
  325.       Left            =   5430
  326.       TabIndex        =   6
  327.       Top             =   1020
  328.       Width           =   1935
  329.       Begin Label Colors 
  330.          BackColor       =   &H00000000&
  331.          Height          =   405
  332.          Index           =   0
  333.          Left            =   360
  334.          TabIndex        =   7
  335.          Top             =   270
  336.          Width           =   405
  337.       End
  338.       Begin Label Colors 
  339.          BackColor       =   &H00808080&
  340.          Height          =   405
  341.          Index           =   1
  342.          Left            =   1200
  343.          TabIndex        =   14
  344.          Top             =   690
  345.          Width           =   405
  346.       End
  347.       Begin Label Colors 
  348.          BackColor       =   &H00FFFFFF&
  349.          Height          =   405
  350.          Index           =   2
  351.          Left            =   780
  352.          TabIndex        =   16
  353.          Top             =   270
  354.          Width           =   405
  355.       End
  356.       Begin Label Colors 
  357.          BackColor       =   &H000000FF&
  358.          Height          =   405
  359.          Index           =   3
  360.          Left            =   360
  361.          TabIndex        =   17
  362.          Top             =   1110
  363.          Width           =   405
  364.       End
  365.       Begin Label Colors 
  366.          BackColor       =   &H0000FF00&
  367.          Height          =   405
  368.          Index           =   4
  369.          Left            =   1200
  370.          TabIndex        =   18
  371.          Top             =   270
  372.          Width           =   405
  373.       End
  374.       Begin Label Colors 
  375.          BackColor       =   &H0000FFFF&
  376.          Height          =   405
  377.          Index           =   5
  378.          Left            =   780
  379.          TabIndex        =   19
  380.          Top             =   1110
  381.          Width           =   405
  382.       End
  383.       Begin Label Colors 
  384.          BackColor       =   &H00FF0000&
  385.          Height          =   405
  386.          Index           =   6
  387.          Left            =   360
  388.          TabIndex        =   20
  389.          Top             =   690
  390.          Width           =   405
  391.       End
  392.       Begin Label Colors 
  393.          BackColor       =   &H00FF00FF&
  394.          Height          =   405
  395.          Index           =   7
  396.          Left            =   1200
  397.          TabIndex        =   21
  398.          Top             =   1110
  399.          Width           =   405
  400.       End
  401.       Begin Label Colors 
  402.          BackColor       =   &H000080FF&
  403.          Height          =   405
  404.          Index           =   8
  405.          Left            =   780
  406.          TabIndex        =   22
  407.          Top             =   690
  408.          Width           =   405
  409.       End
  410.    End
  411.    Begin Frame Frame1 
  412.       BackColor       =   &H00C0C0C0&
  413.       Caption         =   "Band ID"
  414.       Height          =   855
  415.       Left            =   3330
  416.       TabIndex        =   0
  417.       Top             =   120
  418.       Width           =   2070
  419.       Begin OptionButton Option1 
  420.          BackColor       =   &H00C0C0C0&
  421.          Caption         =   "2"
  422.          Height          =   255
  423.          Index           =   2
  424.          Left            =   1320
  425.          TabIndex        =   3
  426.          Top             =   390
  427.          Width           =   500
  428.       End
  429.       Begin OptionButton Option1 
  430.          BackColor       =   &H00C0C0C0&
  431.          Caption         =   "1"
  432.          Height          =   255
  433.          Index           =   1
  434.          Left            =   780
  435.          TabIndex        =   2
  436.          Top             =   390
  437.          Value           =   -1  'True
  438.          Width           =   500
  439.       End
  440.       Begin OptionButton Option1 
  441.          BackColor       =   &H00C0C0C0&
  442.          Caption         =   "0"
  443.          Height          =   255
  444.          Index           =   0
  445.          Left            =   300
  446.          TabIndex        =   1
  447.          Top             =   390
  448.          Width           =   500
  449.       End
  450.    End
  451.    Begin Label Label3 
  452.       BackColor       =   &H00C0C0C0&
  453.       Caption         =   "Band Shape (x,y pairs)"
  454.       Height          =   225
  455.       Left            =   3330
  456.       TabIndex        =   4
  457.       Top             =   4680
  458.       Width           =   3915
  459.    End
  460. End
  461.  
  462. Sub Colors_Click (index As Integer)
  463.  
  464.     lgauge1.BandColor = colors(index).BackColor
  465.     lgauge1.BandPicture = LoadPicture("")
  466.  
  467. End Sub
  468.  
  469. Sub Form_Load ()
  470.  
  471.     hscroll1(0) = lgauge1.BandStart
  472.     hscroll1(1) = lgauge1.BandStop
  473.     hscroll1(2) = lgauge1.BandInner * 100
  474.     hscroll1(3) = lgauge1.BandOuter * 100
  475.     text1 = lgauge1.BandShape
  476.  
  477. End Sub
  478.  
  479. Sub HScroll1_Change (index As Integer)
  480.  
  481.     Select Case index
  482.         Case 0
  483.             lgauge1.BandStart = hscroll1(0)
  484.             label2(0) = hscroll1(0)
  485.         Case 1
  486.             lgauge1.BandStop = hscroll1(1)
  487.             label2(1) = hscroll1(1)
  488.         Case 2
  489.             lgauge1.BandInner = hscroll1(2) / 100
  490.             label2(2) = hscroll1(2) / 100
  491.         Case 3
  492.             lgauge1.BandOuter = hscroll1(3) / 100
  493.             label2(3) = hscroll1(3) / 100
  494.     End Select
  495.  
  496.  
  497. End Sub
  498.  
  499. Sub HScroll1_Scroll (index As Integer)
  500.  
  501.     Select Case index
  502.         Case 0
  503.             lgauge1.BandStart = hscroll1(0)
  504.             label2(0) = hscroll1(0)
  505.         Case 1
  506.             lgauge1.BandStop = hscroll1(1)
  507.             label2(1) = hscroll1(1)
  508.         Case 2
  509.             lgauge1.BandInner = hscroll1(2) / 100
  510.             label2(2) = hscroll1(2) / 100
  511.         Case 3
  512.             lgauge1.BandOuter = hscroll1(3) / 100
  513.             label2(3) = hscroll1(3) / 100
  514.     End Select
  515.  
  516. End Sub
  517.  
  518. Sub Image1_Click (index As Integer)
  519.  
  520.     lgauge1.BandPicture = Image1(index).Picture
  521.  
  522. End Sub
  523.  
  524. Sub lgauge1_Change ()
  525.  
  526.     'get value of pointer(2)
  527.     lgauge1.PointerID = 2
  528.     value = lgauge1.PointerValue
  529.  
  530.     'check value of pointer(0)
  531.     lgauge1.PointerID = 0
  532.     If lgauge1.PointerValue > value Then
  533.         lgauge1.PointerValue = value
  534.     End If
  535.     
  536.     'check value of pointer(1)
  537.     lgauge1.PointerID = 1
  538.     If lgauge1.PointerValue < value Then
  539.         lgauge1.PointerValue = value
  540.     End If
  541.  
  542. End Sub
  543.  
  544. Sub LGauge1_Slide ()
  545.  
  546.     'get value of pointer(2)
  547.     lgauge1.PointerID = 2
  548.     value = lgauge1.PointerValue
  549.     
  550.     'check value of pointer(0)
  551.     lgauge1.PointerID = 0
  552.     If lgauge1.PointerValue > value Then
  553.         lgauge1.PointerValue = value
  554.     End If
  555.     
  556.     'check value of pointer(1)
  557.     lgauge1.PointerID = 1
  558.     If lgauge1.PointerValue < value Then
  559.         lgauge1.PointerValue = value
  560.     End If
  561.  
  562. End Sub
  563.  
  564. Sub Option1_Click (index As Integer)
  565.  
  566.     lgauge1.BandID = index
  567.     hscroll1(0) = lgauge1.BandStart
  568.     hscroll1(1) = lgauge1.BandStop
  569.     hscroll1(2) = lgauge1.BandInner * 100
  570.     hscroll1(3) = lgauge1.BandOuter * 100
  571.     option2(lgauge1.BandStyle) = True
  572.     text1 = lgauge1.BandShape
  573.  
  574. End Sub
  575.  
  576. Sub Option2_Click (index As Integer)
  577.  
  578.     lgauge1.BandStyle = index
  579.  
  580. End Sub
  581.  
  582. Sub Text1_Change ()
  583.  
  584.     lgauge1.BandShape = text1
  585.  
  586. End Sub
  587.  
  588.